﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Workflow.Activities;

namespace Openfree.Workflow.Common
{
    [ExternalDataExchange]
    public interface IExternalService
    {
        //用于发送事件到工作流
        event EventHandler<ExternalEventArgs> Update;
        event EventHandler<ExternalEventArgs> Approve;
        event EventHandler<ExternalEventArgs> Reject;
        event EventHandler<ExternalEventArgs> SendBack;

        //用于接收工作流回调事件
        void OnSendMessage(object message);
    }
}
